﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataAdapter对象.aspx.cs" Inherits="DataAdapter对象" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="tt" runat="server" Text="用于填充DataSet"></asp:Label>&nbsp;
        <asp:DataGrid runat="server" ID="myDataGrid" AutoGenerateColumns="False" Height="306px" ShowHeader="False" Width="290px" AllowPaging="True" OnPageIndexChanged="dd" PageSize="1" AllowSorting="True">
            <Columns>
                <asp:TemplateColumn>
                    <EditItemTemplate>
                        <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.newsid") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Updatetime") %>'></asp:Label>
                            <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Updatetime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid></div>
    </form>
</body>
</html>
